home *** CD-ROM | disk | FTP | other *** search
/ Java Primer Plus / Java Primer Plus (Waite Group Proess)(1996).iso / chapter4 / MyStandAlone.java < prev    next >
Text File  |  1995-12-31  |  417b  |  32 lines

  1. // 
  2. // Java Primer Plus
  3. // Paul Tyma
  4. //
  5. // Chapter 4
  6. //
  7. import java.lang.Math;
  8.  
  9. public class MyStandAlone {
  10.  
  11.  
  12.  public static void main (String args[]) throws java.io.IOException
  13.    {
  14.     float x,y;
  15.     int t;
  16.     
  17.     t = 11;
  18.  
  19.     t = t / 4;
  20.  
  21.     x = (float)java.lang.Math.sin(4.5);;
  22.     y = 10f;
  23.  
  24. //    x = ((int)x|3)/4*y+1.2;
  25.  
  26. //    t = ((int)x|3)/4*y+1;
  27.     System.out.println(x); 
  28. //    x = ( ( 5 > 4) || (8.0/0 < 1 )) ? ((int)x|3)/4*y+1:0;
  29.  
  30.  
  31. }
  32. }